﻿using System;

namespace Tilver.Data
{
    /// <summary>
    /// 实体类的属性和数据库表字段进行映射的类
    /// </summary>
    public class ColumnNameAttribute : Attribute
    {
        /// <summary>  
        /// 类属性对应的列名  
        /// </summary>  
        public string ColumnName { get; set; }
        /// <summary>  
        /// 构造函数  
        /// </summary>  
        /// <param name="columnName">类属性对应的列名</param>  
        public ColumnNameAttribute(string columnName)
        {
            ColumnName = columnName;
        }  
    }
}
